<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head th:include="base/loginBase::head('用户登录',~{::link},~{::script},~{::style})">

    <link rel="stylesheet" th:href="${session.basePath}+'/resource/imp/system/css/login.css'" />
    <link rel="SHORTCUT ICON" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'">
    <link rel="BOOKMARK" th:href="${session.basePath}+'/resource/ico/logo/favicon.ico'">

    <script type="text/javascript" th:src="${session.basePath}+'/resource/plugins/jquery/jqueryMd5.js'"></script>
    <script type="text/javascript" th:src="${session.basePath}+'/resource/imp/system/js/login.js'" charset="utf-8"></script>

    <style type="text/css">
        body{
            -webkit-transition: all 2s;
            -moz-transition: all 2s;
            -o-transition: all 2s;
        }
    </style>
    <script type="text/javascript">

        $(function () {
            if(!isWidScreen){
                $("#fenbianlv_box").show();
            }
            if (!!window.ActiveXObject || "ActiveXObject" in window){
                //是
                $("#liulanqi_box").show();
            }
            $("#close_tishi").click(function () {
                $("#liulanqi_box").hide();
            })
            $("body").css("height",$(window).height()+"px")
        })

        function forgetInfo() {
            $("#login_prompt").html("请联系管理员更新密码");
            $("#login_prompt").show();
        }

        setTimeout(function () {
            $("#loginName").removeAttr("readonly");
            $("#pwd").removeAttr("readonly");
        },100);

        //强制修改登录页面为最顶层窗口，ifram嵌入的页面超时可以直接跳转到本页面 yuanp
        if (window != top) {
            top.location.href = location.href;
        }

    </script>

</head>

<body>

<div id="root">

    <div class="under_block">
        <div class="wrap">

            <div class="container">
                <div class="login_content">

                    <div class="login_left">
                        <div class="login_left_center"></div>
                    </div>

                    <div class="login_right">
                        <div class="login_right_content">
                            <form class="form" id="userLoginForm">

                                <div class="login_right_title">登录</div>

                                <div class="login_prompt" id="login_prompt"></div>

                                <div class="login_right_username">
                                    <input type="text" name="userName" style="width: 87% ;padding-left: 13% ;background-size: 18px;box-shadow: none;" autocomplete="off" id="loginName" placeholder="请输入用户名" readonly="readonly" value="admin">
                                </div>

                                <div class="login_right_password">
                                    <input type="password" name="password" style="width: 87% ;padding-left: 13% ;background-size: 18px;box-shadow: none;" autocomplete="off" id="pwd" placeholder="请输入密码" readonly="readonly" value="000000">
                                </div>

                                <div class="login_right_submit">
                                    <button class="login_submit" id="login_submit" type="button" onclick="login();" >登&nbsp;&nbsp;录</button>
                                </div>

                            </form>
                        </div>
                        <div class="login_right_company">
                            服务区巡检系统
                        </div>
                    </div>

                </div>
            </div>

        </div>
    </div>

</div>
</body>
</html>